package com.seari.custody.service;

import com.seari.custody.bean.Message;

import java.util.List;

public interface MessageService {
    List<Message> statisticsUnReadMessageByUserNumber(String userNumber);

    Integer saveMessage(Message messages);

    Integer updateMessage(Message message);

    Message getById(String id);

    /**
     * 通过发送者和接收者id
     * @param sendId
     * @param receiveId
     * @return
     */
    String qryMessageBySendIdAndReceiveId(String sendId, String receiveId);
}
